<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    console.log('start')

    new Promise((resolve, reject) => {
        console.log('promise')
        resolve('success')
    }).then(res => {
        console.log(res)
    })

    setTimeout(() => console.log('setTimeout'))

    console.log('end')
</script>
</body>
</html>
